function showTab(url, name, id) {
    let length = $("li[lay-id="+id+"]").length;//判断选项卡是否存在
    let element = layui.element;

    if (length == 0) {
        let fullUrl = "/" + url;//url是之前传进来的
        let height = $(window).height() - 185;
        //这里设置的就是路径和页面设置
        let content = '<iframe style="width: 100%;height: '+height+'px" src="' +fullUrl+'" frameborder="0" scrolling="no">'
        element.tabAdd('menu', {
            title: name,
            content: content,
            id: id
        });
    }
    element.tabChange("menu", id);//这个是选项卡切换

}
